#ifndef _STM8LRTC_MODULE_HPP
#define _STM8LRTC_MODULE_HPP


#include "stm8l15x_rtc.h"
#include "stm8l15x_clk.h"

extern RTC_TimeTypeDef  RTC_TimeStruct;
extern RTC_InitTypeDef  RTC_InitStruct;
extern RTC_DateTypeDef  RTC_DateStruct;
 
extern ErrorStatus   serror;


 

 

/**
* @brief  Fills each RTC_InitStruct member with its default value
*         Hour format = 24h / Prescalers configured to their reset values.
* @param  RTC_InitStruct: pointer to a RTC_InitTypeDef structure which will be
*         initialized.
* @retval None
*/
void RTC_StructInit_px(void);
/**
* @brief  Fills each RTC_TimeStruct member with its default value
*         (Time = 00h:00min:00sec).
* @param  RTC_TimeStruct: pointer to a @ref RTC_TimeTypeDef structure which will be
*         initialized.
* @retval None
*/
void RTC_TimeStructInit_px(void);
/**
* @brief  Fills each RTC_DateStruct member with its default value
*         (Monday 01 January xx00).
* @param  RTC_DateStruct: pointer to a @ref RTC_DateTypeDef structure which will be
*         initialized.
* @retval None
*/
void RTC_DateStructInit_px(void);
 
void  RTC_MODULE_Format (  CLK_RTCCLKSource_TypeDef   clksource );
void Set_Haltwakeup( u8 cSec );
#endif
